<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站管理后台</title>
<link rel="stylesheet" href="__PUBLIC__/style/style.css" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validate.js"></script>
</head>
<body>
<div id="wrap">
  <div id="header">
    <div id="logo"></div>
    <div id="user"><a href="">注册</a><span>|</span><a href="">登录</a></div>
    <div id="nav">
      <ul>
        <li class="nobg"><a href="<?php echo U('admin/index');?>">首页</a></li>
		<li><a href="<?php echo U('admin/user');?>">用户管理</a></li>
      </ul>
    </div>
  </div>
<div id="mainWrap">
  <div id="main">
    <div class="blank15"></div>
    <div class="blank5"></div>
    <div id="position">当前位置:用户管理</div>
    <ul class="clearfix mb10" id="subNav">
      <li><a href="<?php echo U('user/index');?>">用户资料管理</a> -- <a href="<?php echo U('user/add');?>">添加用户</a></li>
      <li><a href="<?php echo U('role/index');?>">用户组管理</a> -- <a href="<?php echo U('role/add');?>">添加用户组</a></li>
      <li><a href="<?php echo U('node/index');?>">权限节点管理</a> -- <a href="<?php echo U('node/add');?>">添加权限节点</a></li>
    </ul>
	<div class="w1156">
        <table cellpadding="0" cellspacing="5" width="100%">
          <tr>
            <td align="left"><form method="get" action="/supplier/sitemanage">
                <table cellpadding="0" cellspacing="5">
                  <tr>
                    <td>搜索:</td>
                    <td><input type="text" name="keyword" class="intxt" /></td>
                    <td><input type="submit" value="" class="btn_search" /></td>
                  </tr>
                </table>
              </form></td>
            <td align="right"></td>
          </tr>
        </table>
      </div>
	  <div class="w1156">
        <table width="100%" cellspacing="0" cellpadding="0" class="tablePublic tdHover">
          <tr>
            <th width="15%">账号</th>
            <th width="15%">真实姓名</th>
			<th width="25%">邮箱</th>
            <th width="10%">状态</th>
            <th width="10%">用户组</th>
            <th width="15%">登入时间</th>
            <th width="10%">操作</th>
          </tr>
		  <?php if(is_array($userlist)): $i = 0; $__LIST__ = $userlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
            <td><?php echo ($vo["username"]); ?></td>
            <td><?php echo ($vo["nickname"]); ?></td>
			<td><?php echo ($vo["email"]); ?></td>
            <td align="center"><?php if($vo["status"] == 1): ?>激活<?php else: ?>未激活<?php endif; ?></td>
            <td align="center">超级管理员</td>
            <td align="center"><?php echo (date("y-m-d H:i:s",$vo["last_login_time"])); ?></td>
            <td align="center"><a href="<?php echo U('User/edit',array(id=>$vo['id']));?>">编辑</a> | <a href="#">删除</a></td>
          </tr><?php endforeach; endif; else: echo "" ;endif; ?>          
        </table>
      </div>
	  <div id="page"><?php echo ($page); ?></div>
  </div>
  <div id="mainBot"></div>
</div>
</div>
</body>
</html>